<div id="preject">
    {switch $type}
    {case 1}
    {foreach $one as $v}
    <div id="content-title">
        <p>{$v.title}</p>
        <p><a>{$v.apartment|mb_substr=0,5,'utf-8'}</a><a>{$v.time|substr=0,10}</a><a>截止时间：{$v.endtime|substr=0,10}</a></p>
    </div>
    <div id="content-info">
        {$v.content}
        {notempty name="$v.file"}
        <a style="display: block;text-align: center;margin: 10px" href="__ROOT__/uploadfile/{$v.file}">{$v.file}</a>
        {/notempty}
        <div id="confirm"><a onclick="con(1,'{$v.id}')">个人报名</a></div>
        <!--<a  onclick="con(2,'{$v.id}')">团队报名</a>-->
    </div>
    {/foreach}
    {/case}


    {case 2}
    {foreach $two as $v}
    <div id="content-title">
        <p>{$v.title}</p>
        <p><a>{$v.time|substr=0,10}</a></p>
    </div>
    <div id="content-info">
        {$v.content}
        {notempty name="$v.file"}
        <a style="display: block;text-align: center;margin: 10px" href="__ROOT__/uploadfile/{$v.file}">{$v.file}</a>
        {/notempty}
    </div>
    {/foreach}
    {/case}

    {case 3}
    {foreach $three as $v}
    <div id="content-title">
        <p>{$v.title}</p>
        <p><a>{$v.time|substr=0,10}</a></p>
    </div>
    <div id="content-info">
        {$v.content}
        {notempty name="$v.file"}
        <a style="display: block;text-align: center;margin: 10px" href="__ROOT__/uploadfile/{$v.file}">{$v.file}</a>
        {/notempty}
    </div>
    {/foreach}
    {/case}

    {/switch}
</div>